package com.his.patiinfobasic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.his.patiinfobasic.entity.PatiinfobasicContactor;
import com.his.patiinfobasic.entity.Patiinfocard;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author zhangxiong
 * @Date 2020/3/1011:26
 * @Version 1.0
 */
@Data
public class PatiinfobasicVoo {

    /**

     * @mbggenerated
    /**

     * @mbggenerated
     */
    @NotEmpty(message = "病人编码不能为空")
    private String patiid;

    /**
     *
     * null
     *
     * @mbggenerated
    /**
     *
     * null
     *
     * @mbggenerated
     */
    @NotEmpty(message = "姓名不能为空")
    private String patiname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    @NotEmpty(message = "性别不能为空")
    private String sexid;

    /**
     *
     * null
     *
     * @mbggenerated
     */

    private String sexname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    @NotNull(message = "出生日期不能为空")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date birthdate;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String occupationid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String occupationname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String regilocid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String regilocname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String marriedid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String countryid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String countryname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String nativeplaceid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String nativeplacename;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String nationalityid;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String nationalityname;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String id2;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String id3;

    /**
     *
     * null
     *
     * @mbggenerated
     */
    private String infoFrom;

    /**
     *
     * 家庭地址
     *
     * @mbggenerated
     */
    private String familyaddr;

    /**
     *
     * 单位名称
     *
     * @mbggenerated
     */
    private String entname;

    /**
     *
     * 单位地址
     *
     * @mbggenerated
     */
    private String entaddr;

    /**
     *
     * 病人联系电话
     *
     * @mbggenerated
     */
    private String telenum;
    /**
     * 身份证号
     */
    private String idcard;

    List<PatiinfobasicContactor> contactorList ;
}
